<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../assets/lib/layui/css/layui.css">
    <script src="../assets/lib/jquery.js"></script>
    <link rel="stylesheet" href="../assets/lib/cropper/cropper.css">
    <link rel="stylesheet" href="../assets/css/user_avatar.css">
</head>

<body>
    <div class="layui-card">
        <div class="layui-card-header">修改图片</div>
        <div class="layui-card-body">
            <!-- 上 -->
            <div class="top">
                <!-- 左 -->
                <div class="left">
                    <img class="avatar" src="../assets/images/sample.jpg" alt="">
                </div>
                <!-- 右 -->
                <div class="right">
                    <div class="img-preview w100"></div>
                    <div class="img-preview w50"></div>
                </div>
            </div>
            <!-- 下 -->
            <div class="bottom">
                <input type="file" class="file" accept="image/png,image/jpeg" style="display: none;">
                <button type="button" class="choose-img layui-btn layui-btn-normal">选择图片</button>
                <button type="button" class="layui-btn layui-btn-danger upload">上传图片</button>
            </div>
        </div>
    </div>
</body>
<script src="../assets/lib/layui/layui.all.js"></script>
<script src="../assets/js/baseApi.js"></script>
<script src="../assets/lib/cropper/Cropper.js"></script>
<script src="../assets/lib/cropper/jquery-cropper.js"></script>
<script src="../assets/js/user_avatar.js"></script>

</html>